package com.xmy.cultivate.service;

import com.xmy.cultivate.entity.SchoolNeeds;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.SchoolNeeds;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmy.cultivate.entity.TryJob;
import com.xmy.cultivate.entity.response.TidyRs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 校区招聘需求表 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-12-11
 */
public interface ISchoolNeedsService extends IService<SchoolNeeds> {

    List<SchoolNeeds> querySchoolNeedList(String startDate, String endDate, String subjectsId);

    List<SchoolNeeds> querySchoolNeedTotal(String startDate, String endDate, String stationId);

//    IPage<SchoolNeeds> querySchoolNeedDetails(IPage<SchoolNeeds> page , String subjectsId);

    List<TryJob> queryTryJobBySchoolId(IPage<TryJob> page, String startDate, String endDate, String schoolId, String stationId, String type);

    List<SchoolNeeds> getAssignList(String startDate, String endDate, String stationNeedsId, String schoolId, String departmentId, Integer isDetails, Integer type, String subjectsId, String labourId, String stationId);

    List<TryJob> getAssignDetails(IPage<TryJob> page, String startDate, String endDate, String schoolId, String departmentId, String detailsType, Integer type, String labourId, String stationId, String stationNeedsId, String subjectsId);

    TryJob getDate();

    List<TidyRs> getAllNeedsSchool(@Param("yearPart") Integer yearPart,
                                   @Param("quarterNum") Integer quarterNum
    );

    List<TidyRs> getAllNeedsSchoolForLess(Long stationId,
                                          Long subjectsId,
                                          Long areaId
    );
}
